package edu.uwlax.cs.oayonlinestore.client.gui.myaccount;

import edu.uwlax.cs.oayonlinestore.client.User;
import edu.uwlax.cs.oayonlinestore.client.gui.shared.OrderTable;
import edu.uwlax.cs.oayonlinestore.client.utils.TitlePage;

public class PageUserListOrders extends TitlePage {
	
	private OrderTable table;

	protected void create() {
		setTitle("my Orders");
		add(table = new OrderTable(false,false));
	}

	public String getID() {
		return "ListOrders";
	}

	protected void onShow() {
		table.loadByUser(User.get().getId());
	}

}
